package apiday02;

import java.util.AbstractList;
import java.util.Arrays;

/**
 *
 * */
public class SplitDemo {
    public static void main(String[] args) {
        String len="789wqeqwe131r9797..qweqw.789797";
        String[] split = len.split("[a-zA-Z]+");
        System.out.println(split.length);//4
        System.out.println(Arrays.toString(split));


//        String len="12312qwer789uio789";
//        String[] split = len.split("[A-za-z]+");//按满足正则表达式的部分删除了，并装到一个新的字符数组里
//        for (String er:split){
//       //     System.out.println(er);
//        }
//        System.out.println(Arrays.toString(split)+"长度为"+split.length);
////        for (int i=0;i< split.length;i++){
////
////        }
//        len=".123.789..78......";
//        String[] split1 = len.split("\\.");
//        System.out.println(Arrays.toString(split1));
//
//        System.out.println(split1.length);//5

    }
}
